home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus Special 25
/
AMIGAplus Sonderheft 25 (2000)(Falke)(DE)(Track 1 of 4)[!].iso
/
Magazin
/
Future-PD
/
Scripts
/
S4_SnackBar.script
< prev
next >
Wrap
Text File
|
1998-05-15
|
879b
|
48 lines
:LOOP|
FACE 0|
WAIT 15|
GOTO LOOP|
:TOUCH|
[ "What'll it be, sir? All our items"|
[ "are prepared fresh every morning!"|
MENURESET|
MENUADD Pizza "Buy a slice of Pizza for 25cr"|
MENUADD Sandwich "Buy a sandwich for 8cr"|
MENUADD Special "Buy both a pizza and a sandwich for 30cr"|
MENUADD Cancel "Leave the Snack Bar"|
MENUCHOICE @RES|
RATINGGET CRED @CRED|
ONGOTO 0 @RES L0 L1 L2 LOOP|
GOTO LOOP|
:L0|
MATH @CRED + 5|
RATINGSET CRED @CRED|
BUY PizzaSlice @RES|
IF @RES GOOD|
MATH @CRED - 5|
RATINGSET CRED @CRED|
GOTO BAD|
:L1|
BUY Sandwich @RES|
IF @RES GOOD|
GOTO BAD|
:L2|
BUY Sandwich @RES|
IF @RES L2.2|
GOTO BAD|
:L2.2|
RATINGGET CRED @CRED|
MATH @CRED + 8|
RATINGSET CRED @CRED|
BUY PizzaSlice @RES|
IF @RES GOOD|
MATH @CRED - 8|
SELL Sandwich @RES|
RATINGSET CRED @CRED|
:BAD|
[ "Sorry, sir. Not enough credits!"|
GOTO LOOP|
:GOOD|
[ "Thanks a lot, sir!"|
GOTO LOOP|